
public class e006 {
    public static void main(String[] args) {
        long sTime = System.currentTimeMillis();
        long sum = 0;
        long sumOfSqs = 0;
        for (int i = 1; i <= 100; i++) {
            sumOfSqs += i * i;
            sum += i;
        }
        long sqOfSums = sum * sum;
        System.out.println(sqOfSums - sumOfSqs);
        long fTime = System.currentTimeMillis();
        System.out.println("Time: " + (fTime - sTime) + "ms");
    }
}